import request from '@/utils/request'
import { BASE_URL } from "@/settings";

export function buildAuthTokenReq(siteId, data) {
  return request({
    url: `${BASE_URL}/hr/api/v1/transferAccountInfos/buildAuthToken/${siteId}`,
    method: 'post',
    data
  })
}

export function XGKCheckReq(openId, siteId) {
  return request({
    url: `${BASE_URL}/hr/api/v1/transferAccountInfos/selectUserAuthStatus/${openId}/${siteId}`,
    method: "get"
  });
}

export function submitInfoReq(data) {
  return request({
    url: `${BASE_URL}/hr/api/v1/transferAccountsPeoples/h5SaveData`,
    method: "post",
    data
  });
}

export function getOpenidReq(data) {
  return request({
    url: `${BASE_URL}/user/api/v1/wechat/getSessionKeyByCode`,
    method: 'post',
    data: {
      ...data,
      terminalType: 'B'
    }
  })
}
